package book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-19
 * Time: 19:03
 */
public class Book {
    private String name;
    private String author;
    private int age;
    private String type;
    private boolean isboolean;

    public Book(String name, String author, int age, String type) {
        this.name = name;
        this.author = author;
        this.age = age;
        this.type = type;
    }
    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", age=" + age +
                ", type='" + type + '\'' +
                (isboolean == true ? "已借出":"未借出" )+
               // ", isboolean=" + isboolean +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isIsboolean() {
        return isboolean;
    }

    public void setIsboolean(boolean isboolean) {
        this.isboolean = isboolean;
    }
}
